]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Use Clutter default text direction
authorAbderrahim Kitouni <akitouni@gnome.org>
Fri, 26 Feb 2021 17:08:01 +0000 (18:08 +0100)
committerAbderrahim Kitouni <akitouni@gnome.org>
Fri, 26 Feb 2021 17:10:16 +0000 (18:10 +0100)
This code was copied from workspacesView which used the widget's text
direction, but it is no longer in a widget

Fixes #3780

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1724>

js/ui/windowManager.js

index dfc0aada00f4781dda5c6dd794dfb66d5391bde9..93777db22e2017beb5d039d63b10ea5c889e3d9f 100644 (file)
@@ -1875,7 +1875,7 @@ var WindowManager = class {
 
         const workspaceManager = global.workspace_manager;
         const vertical = workspaceManager.layout_rows === -1;
-        const rtl = this.text_direction === Clutter.TextDirection.RTL;
+        const rtl = Clutter.get_default_text_direction() === Clutter.TextDirection.RTL;
         const activeWs = workspaceManager.get_active_workspace();
         let ws;
         switch (direction) {